package cn.wb.base.util;

import cn.wb.base.jwt.UserInfo;

public class ThreadLocalUtil {
   private static ThreadLocal<UserInfo> threadLocal = new ThreadLocal();


    public static void setUserInfo(UserInfo userInfo){
        threadLocal.set(userInfo);
    }

    public static UserInfo getUserInfo(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }

}
